module.exports = {
    mode: "development",
    entry: './t1.ts',
    target: 'web',
    output: {
        filename: 'main.js',
        path: __dirname + "/dist",
        libraryTarget: 'umd',
        library: 'layx',
        libraryExport: 'default',
    },
    devtool: "source-map",
    module: {
        rules: [
            { test: /\.ts?$/, loader: "ts-loader" }
        ]
    },
    resolve: {
        extensions: [".ts", ".tsx", ".js"]
    }
}